part of 'bloc.dart';

class TtsBlocState {
  const TtsBlocState({
    required this.availableAmVoices,
    required this.availableBrVoices,
  });

  final BuiltList<TtsVoice> availableAmVoices;
  final BuiltList<TtsVoice> availableBrVoices;

  TtsBlocState copyWith({
    BuiltList<TtsVoice> Function()? availableAmVoices,
    BuiltList<TtsVoice> Function()? availableBrVoices,
  }) {
    return TtsBlocState(
      availableAmVoices: availableAmVoices == null ? this.availableAmVoices : availableAmVoices(),
      availableBrVoices: availableBrVoices == null ? this.availableBrVoices : availableBrVoices(),
    );
  }
}
